Skip to content

Conversation

@edgurgel
Copy link
Member

@edgurgel edgurgel commented Nov 4, 2025

🔍 Description

Implement Realtime V2 Serializer

Connected to supabase/realtime#1606

What changed?

New serializer version 2.0.0 (experimental for now) supported which has:

  • Two new special types of messages: user broadcast and user broadcast push
  • Allows binary user payloads
  • Reduces the amount of JSON encoding involved server side

The default version is still 1.0.0 while 2.0.0 can be tested so real change.

Why was this change needed?

Binary payload support & more streamlined broadcasts for server side handling

📸 Screenshots/Examples

🔄 Breaking changes

  • This PR contains no breaking changes

📋 Checklist

  • I have read the Contributing Guidelines
  • My PR title follows the conventional commit format: <type>(<scope>): <description>
  • I have run npx nx format to ensure consistent code formatting
  • I have added tests for new functionality (if applicable)
  • I have updated documentation (if applicable)

📝 Additional notes

@github-actions github-actions bot added the realtime-js Related to the realtime-js library. label Nov 4, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 4, 2025

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@1829

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@1829

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@1829

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@1829

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@1829

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@1829

commit: eb0c799

@coveralls
Copy link

coveralls commented Nov 4, 2025

Coverage Status

coverage: 95.276% (+14.1%) from 81.151%
when pulling eb0c799 on feat/v2-serializer
into 6ee3546 on master.

@edgurgel edgurgel force-pushed the feat/v2-serializer branch 3 times, most recently from 240b4f0 to 313ae5d Compare November 6, 2025 22:08
@edgurgel edgurgel marked this pull request as ready for review November 6, 2025 22:33
@edgurgel edgurgel requested review from a team as code owners November 6, 2025 22:33
@mandarini mandarini merged commit 4589e34 into master Nov 7, 2025
26 of 27 checks passed
@mandarini mandarini deleted the feat/v2-serializer branch November 7, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

realtime-js Related to the realtime-js library. trigger: preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants